]> dgit.raspbian.org Git - gnome-shell.git/commit
messageTray: Add removeAction() method and allow references to actions
authorPhilip Withnall <pwithnall@gnome.org>
Tue, 28 May 2024 17:03:11 +0000 (18:03 +0100)
committerPhilip Withnall <pwithnall@gnome.org>
Thu, 28 Nov 2024 10:44:02 +0000 (10:44 +0000)
commit03e3d9f435b5e23ae4c43dc30846d18e02526ced
treec300f80bb57603d1347f4c3eb6c3f99fed242cd5
parente9ca27c6635ef50bed816d481f94b78ac16c8809
messageTray: Add removeAction() method and allow references to actions

Internally in gnome-shell it may be useful to modify the actions
available on a notification while it’s still visible, but without
clearing them all and re-creating them.

Allow that by returning the action object when adding it, and adding a
`removeAction()` method which takes that object and removes it.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3251>
js/ui/messageTray.js